package baseDemo;

public class recursion {
    public static void main(String[] args) {
        System.out.println(calculate(5));
    }
    public static int calculate(int n){
        if( ! ((n - 1) >0)){
            return  n;
        }
        return n*calculate(n-1);
    }
}
